{template 'common/header'}
<div class="container">
    <div class="row">
        <div class="span12">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        微站管理：
                    </h3>
                </div>
                <form action="#" method="post">
                    <input type="hidden" name="submit" value="submit">
                    <div class="panel-body">
                        <table class="table">
                            <tr>
                                <td>微站名称<input type="text" name="title" value="{$site['title']}"></td>
                            </tr>
                            <tr>
                                <td>微站描述<input type="text" name="describe" value="{$site['describe']}"></td>
                            </tr>
                            <tr class="info">
                                <Td>模块管理</Td>
                            </tr>
                            <tr>
                                {loop $modules $module}
                            <tr>
                                <Td>
                                    <button class="btn btn-primary">{$module['title']}</button>
                                    <input type="checkbox" name="moduleid[]" value="{$module['mid']}" {if $module['enabled']} checked {/if}/>
                                </Td>
                            </tr>
                            {/loop}

                            </Td>
                            </tr>
                            <tr class="info">
                                <Td>文章管理</Td>
                            </tr>
                            {loop $articles $article}
                            <tr><td>
                                <h3><a href="{php echo url('manage/article',array('aid'=>$article['id']))}">{$article["title"]}</a><small>{$article["description"]}</small></h3>
                            </td></tr>
                            {/loop}
                            <tr align="center">
                                <td>
                                    <button type="submit" class="btn btn-success">提交</button>
                                </td>
                            </tr>
                        </table>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>